#pragma once
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <stdbool.h>

typedef struct Heap
{
	int* a;
	int size;
	int capacity;
}Heap;

void HeapInit(Heap* php);
void HeapDestory(Heap* php);
void HeapPush(Heap* php,int x);
void HeapPop(Heap* php);
bool HeapEmpty(Heap* php);
int HeapTop(Heap* php);
void AdjustUp(int* a, int child);
void AdjustDown(int* a,int parent,int n);



